<template>
  <div class="page">
    <div class="completion">
      <Icon size="60" color="#ff9900" type="ios-alert" />
      <span class="text">{{$t('pay.cancelPayment')}}</span>
    </div>
    <span class="text">{{$t('pay.haveCancelledPayment')}}</span>
    <div class="hint-list">
      <div class="title">{{$t('pay.noteFollowing')}}:</div>
      <div class="hint-item">
        <div class="hint-item-top">
          <div class="num">1</div>
          <span class="text">{{$t('pay.goodsWill')}}</span>
        </div>
        <div class="hint-item-content">
          {{$t('pay.userCenterMyWarehouse')}}
        </div>
      </div>
      <div class="hint-item">
        <div class="hint-item-top">
          <div class="num">2</div>
          <span class="text">{{$t('pay.attentionOrder')}}</span>
        </div>
        <div class="hint-item-content">
          {{$t('pay.duringOrderProcessing')}}
        </div>
      </div>
    </div>
    <div class="footer">
      <router-link to="/">
        <Button class="btn" type="success">{{$t('pay.continueShopping')}}</Button>
      </router-link>
      <router-link to="/user/order">
        <Button class="btn" type="success" ghost>{{$t('pay.viewOrder')}}</Button>
      </router-link>
    </div>
  </div>
</template>

<script>
export default {
  name: "completion",
  methods: {
    confirmPay() {
      this.$router.push('/user/center');
    },
  }
}
</script>

<style scoped lang="less">
.page {
  width: 1200px;
  margin: 50px auto;
  .completion {
    display: flex;
    align-items: center;
    .text {
      display: block;
      text-align: center;
      color: @warning-color;
      font-size: 18px;
      font-weight: 600;
    }
  }
  .text {
    color: @t-text-color;
    font-size: 14px;
  }
  .hint-list {
    .title {
      margin-top: 46px;
      color: @t-title-color;
      font-size: 20px;
      font-weight: bold;
    }
    .hint-item {
      margin-top: 24px;
      &-top {
        display: flex;
        align-items: center;
        .num {
          display: flex;
          align-items: center;
          justify-content: center;
          width: 20px;
          height: 20px;
          margin-right: 6px;
          border-radius: 50%;
          background: @success-color;
          color: #ffffff;
          font-size: 14px;
          font-weight: 500;
        }
        .text {
          color: @t-title-color;
          font-size: 14px;
          font-weight: 500;
        }
      }
      &-content {
        padding: 12px 0;
        color: @t-text-color;
        font-size: 14px;
      }
    }
  }
  .hint {
    display: block;
    text-align: center;
    color: @t-text-color;
    font-size: 14px;
  }
  .footer {
    margin-top: 24px;
    .btn {
      margin-right: 12px;
    }
  }
}
</style>